<!--#include file="conn.asp"-->
<!--#include file="chkuser.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<%
set rs=server.CreateObject("adodb.recordset")
sql="select * from Product where id="&request("id")
rs.open sql,conn,1,1
%>
<form name="form1" action="?action=do&id=<%=request("id")%>" method="post">
<table width="10%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="5%"><input name="px" type="text" value="<%=rs("px")%>" style="width:50px" ></td>
    <td width="95%"><input type="submit" name="Submit" value="确定" style="background-color:#ffffff;width:36px;padding-left:1px"/></td>
  </tr>
</table>
</form>
<%
if trim(request("action"))="do" then
	set rss=server.CreateObject("adodb.recordset")
	sqls="select * from Product where id="&request("id")
	rss.open sqls,conn,1,3
	rss("px")=trim(request("px"))
	rss.update
	rss.close
	set rss=nothing
	response.Redirect("?id="&request("id")&"")
end if
%>
